package cn.iocoder.yudao.module.book.controller.app.booksShell.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 绘本 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppBooksRespVO {

    @Schema(description = "绘本id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8895")
    @ExcelProperty("绘本id")
    private Integer bookId;

    @Schema(description = "绘本集id", example = "31985")
    @ExcelProperty("绘本集id")
    private Integer collectionId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("标题")
    private String title;

    @Schema(description = "绘本封面", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("绘本封面")
    private String coverUrl;

    @Schema(description = "创建时间")
//    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    @Schema(description = "作者", example = "随便")
    private String creator;

}